]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Properly track notificationExpanded
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 10 Aug 2012 20:31:09 +0000 (17:31 -0300)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sun, 19 Aug 2012 22:41:52 +0000 (18:41 -0400)
This makes a lot more sense.

js/ui/messageTray.js

index 4eb0eb220ba8737c1c29f429cd7133a6616ac391..54750cf688e773e738afe9063452ba22e901a94a 100644 (file)
@@ -1778,7 +1778,7 @@ const MessageTray = new Lang.Class({
         let notificationsPending = notificationQueue.length > 0 && (!notificationsLimited || notificationUrgent);
         let nextNotification = notificationQueue.length > 0 ? notificationQueue[0] : null;
         let notificationPinned = this._pointerInTray && !this._pointerInSummary && !this._notificationRemoved;
-        let notificationExpanded = this._notificationBin.y < - this.actor.height;
+        let notificationExpanded = this._notification && this._notification.expanded;
         let notificationExpired = this._notificationTimeoutId == 0 &&
                                   !(this._notification && this._notification.urgency == Urgency.CRITICAL) &&
                                   !this._pointerInTray &&